<p>找到 <%= @movies.size %> 个符合条件的视频</p>

<ul class="mvlist-ul">
<% @movies.each do |movie| %>
    <li class="mvlist-item">
      <div class="mvlist-item-head">
        <b><%= link_to movie.title, movie %></b>
        by <%= link_to movie.user.uname, movie.user %>
      </div>
      <b><span class="info-tag">专辑:</span></b><%= link_to movie.album.title, movie.album %><br/>
      <b><span class="info-tag">标签:</span></b><%= movie.tags %><br/>
      <b><span class="info-tag">描述:</span></b><%= movie.info %><br/>
    <% if current_user && (current_user.privilege>1 || current_user.id==movie.user_id)%>
    <%= link_to '编辑', edit_movie_path(movie) %>
    <% end %>
    <% if current_user && current_user.privilege > 1 %>
    <%= link_to '删除', movie, :confirm => 'Are you sure?', :method => :delete %>
    <% end %>
    </li>
<% end %>
</ul>
